<?php

namespace JLPay\Models\Openmerch\Change;

/**
 * 结算信息DTO
 */
class MerchSettleInfoDto
{
    protected ?string $settleMode = null;
    protected ?string $dayCut = null;
    protected ?string $settleSession = null;
    protected ?string $accountChangeFlag = null;
    protected ?string $postscript = null;

    /**
     * 设置结算方式
     *
     * @param string $settleMode
     * @return self
     */
    public function setSettleMode(string $settleMode): self
    {
        $this->settleMode = $settleMode;
        return $this;
    }

    /**
     * 转换为数组
     *
     * @return array
     */
    public function toArray(): array
    {
        return [
            'settle_mode' => $this->settleMode,
            'day_cut' => $this->dayCut,
            'settle_session' => $this->settleSession,
            'account_change_flag' => $this->accountChangeFlag,
            'postscript' => $this->postscript
        ];
    }
} 